package KUOZHAN;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class test7 {
    public static void main(String[] args) throws IOException {
        BufferedReader re=new BufferedReader(new FileReader("Task2.txt"));
        String s=null;
        List<student> list=new ArrayList<>();
       while ((s=re.readLine())!=null){
           String[] split = s.split(",");
           list.add(new student(split[0],split[1],Integer.parseInt(split[2]),Integer.parseInt(split[3])));

       }
        for (student student : list) {
            System.out.println(student);

        }
    }

}
